import users from './system/users.js'
import menus from './system/menus.js'
import roles from './system/roles.js'
import depts from './system/depts.js'
import leave from './system/leave.js'
import Router from 'koa-router'
const router = new Router()
router.prefix("/api")
const routerList = [users, menus, roles, depts, leave];
routerList.forEach(item => {
  router.use(item.routes(), item.allowedMethods())
})
export default router